package com.kt.opc.util;

import org.eclipse.milo.opcua.sdk.client.OpcUaClient;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class OpcPool {

    //线程安全
    private static Map<String, OpcUaClient> opcMap=new ConcurrentHashMap<>();

    //入池方法
    public static void inPool(String name,OpcUaClient opcUaClient){
        // System.out.println(opcUaClient.getSession().isDone());
        opcMap.put(name,opcUaClient);

        // System.out.println(opcMap);
    }

}
